package org.domeos.framework.api.biz.productline;

import java.util.List;

import org.domeos.framework.api.biz.base.BaseBiz;
import org.domeos.framework.api.model.productline.ProductLine;
import org.domeos.framework.api.model.productline.ProductLineTree;
import org.domeos.framework.engine.exception.DaoException;

public interface ProductLineBiz extends BaseBiz {
	
	String PRODUCT_TABLE_NAME = "product_line";
	
	void addProductLine(ProductLine productLine) throws DaoException;
	
	void updateProductLine(ProductLine productLine) throws DaoException;
	
	ProductLine selectById(int id)throws DaoException;
	
	List<ProductLineTree> selectByLevel(int level) throws DaoException;
	List<ProductLineTree> selectByPId(int pId) throws DaoException;
	
	int getCountById(int pId) throws DaoException;
}
